﻿@{
    ViewBag.Title = "订单查漏";
    Layout = "~/Views/Shared/_JQBaseLayOut.cshtml";
}
@using Model
@section JQscriptSection{

    <script type="text/javascript">
        $(document).ready(function () {
            var defaultDate = XDate.today().addDays(-1).toString("yyyy-MM-dd");
            $("#DeliverDate").datebox("setValue", defaultDate);
            $(".datebox :text").attr("readonly", "readonly");

            InitGrid();

        });

        //初始化数据
        function InitGrid() {
            var deliverDate = $('#DeliverDate').datebox('getValue');
            var orderNo = $('#OrderNo').val();
            var queryParams =
            {
                DeliverDate: deliverDate,
                OrderNo: orderNo,
            };
            //console.log(queryParams);
            HandleData.InitDataGrid('dg', '/Report/GetCheckOrderList', 'toolbar', queryParams, 'LMEID', false, function (data) { },
                function (rowIndex, rowData) {//双击

                });
        }

        HandleDom.ClassTriggerClick("icon-reload", function () {
            $('#dg').datagrid('reload');
        });

    </script>
}
<body style="background-color: ButtonFace; font-size: 17px">
    <div class="easyui-panel" title="查询条件" style="height: 70px; padding: 5px; background: #fafafa; width: 1700px;">
        <form id="query" method="post">
            <table>
                <tr>
                    <td>
                        配送日期:
                    </td>
                    <td>
                        <input class="easyui-datebox" id="DeliverDate" name="DeliverDate" readonly="readonly" type="text" style="width: 140px;" value="" />
                    </td>
                    <td>
                        订单号：
                    </td>
                    <td>
                        <input id="OrderNo" name="OrderNo" type="text" style="width: 140px;" />
                    </td>
                    <td></td>
                    <td>
                        <a id="btnSerach" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'" onclick="InitGrid();">查询</a>
                    </td>
                </tr>
            </table>
        </form>
    </div>
    <div style="min-height: 720px; width: 1700px;">
        <table id="dg" title="漏单列表" style="min-height: 600px;">
            <thead>
                <tr>
                    <th data-options="field:'OrderNo',width:50">订单号</th>
                    <th data-options="field:'CheckErrorInfo',width:100">漏单原因</th>
                </tr>
            </thead>
        </table>
    </div>
    @Html.Partial("~/Views/Shared/_PartialToolbar.cshtml", new Toolbar
{
    GridName = "dg",
    GridType = "datagrid",
    ToolbarName = "toolbar",
    FunctionModule = new Dictionary<string, List<FunctionModule>>()
    {
        {"Function",new List<FunctionModule>()
            {
              new FunctionModule(){Name = "Add",IsEnable =false },
              new FunctionModule(){Name = "Edit",IsEnable =false },
              new FunctionModule(){Name = "Remove",IsEnable =false },
              new FunctionModule(){Name = "Reload",IsEnable =true },
              new FunctionModule(){Name = "Collapse",IsEnable =false },
              new FunctionModule(){Name = "Exporter",IsEnable =false },
              new FunctionModule(){Name = "AllEdit",IsEnable =false },

            }
        }
    }
})
    <script src="@Url.Content("~/Scripts/common/xdate.js")" type="text/javascript"></script>
</body>


